{% extends 'contact/contactbase.html' %}

{% block subtitle %} {{to}}{%endblock subtitle %}

{% block content %}
<div class="form_container">
<form action="" method="POST">{% csrf_token %}
{{form.non_field_errors}}
<table style="width: 500px; margin: auto auto;">
    <tr><td>To:</td><td>{{to}}</td><td></td></tr>
    <tr><td>From:</td><td>{{form.sender}}</td><td>{{form.sender.errors}}</td></tr>
    <tr><td>Subject:</td><td>{{form.subject}}</td><td>{{form.subject.errors}}</td></tr>
    <tr><td>Message: {{form.message.errors}}</td><td colspan="2">{{form.message}}</td></tr>
    <tr><td colspan="3" style="text-align: center;"><button class="button SaveButton" type="submit">Send</button></td></tr>
</table>
</form>
</div>
{% endblock content %}
